﻿using System;
using System.Data;
using System.Data.Common;
using Liger.Common;
using Liger.Data;

namespace EasyFMS.Model
{

	/// <summary>
	/// 实体类cBill
	/// </summary>
	[Serializable]
	public class cBill : Entity 
	{ 
		 public cBill() 
            : base("cBill") 
        { 

        }


		#region Model
		private int _UID;
		private string _BillNo;
		private int? _BillStatus;
		private string _FinancyYear;
		private string _FinancyMonth;
		private string _DeptCode1;
		private string _DeptName1;
		private string _DeptCode2;
		private string _DeptName2;
		private string _CustomerCode;
		private string _CustomerName;
		private string _OrderNo;
		private int? _SeqNo;
		private int? _MergerNo;
		private bool? _IsMerger;
		private int? _CurrencyID;
		private string _Currency;
		private string _Exchange;
		private int? _RateTax;
		private string _Amount;
		private string _AmountGet;
		private string _AmountRemain;
		private string _IncomeCNY;
		private string _CostCNY;
		private string _ProfitCNY;
		private bool? _IsReturn;
		private int? _UserReturnID;
		private string _ReturnDate;
		private string _ReturnNote;
		private bool? _IsCollate;
		private int? _UserCollateID;
		private string _CollateDate;
		private bool? _IsCommit;
		private int? _UserCommitID;
		private string _CommitDate;
		private bool? _IsVerify;
		private int? _UserVerifyID;
		private string _VerifyDate;
		private bool? _IsInvoice;
		private int? _UserInvoiceID;
		private string _InvoiceDate;
		private string _InvoiceNo;
		private string _InvoiceTitle;
		private bool? _IsGet;
		private int? _UserGetID;
		private string _GetDate;
		private string _Note;
		private bool? _IsSelect;
		private int? _UserCreateID;
		private string _CreateDate;
		private int? _UserModifyID;
		private string _ModifyDate;
	 
		/// <summary>
		/// 
		/// </summary>
		public int UID
		{
			get{ return _UID; }
			set
			{
				this.OnPropertyValueChange(_.UID,_UID,value);
				this._UID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string BillNo
		{
			get{ return _BillNo; }
			set
			{
				this.OnPropertyValueChange(_.BillNo,_BillNo,value);
				this._BillNo = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? BillStatus
		{
			get{ return _BillStatus; }
			set
			{
				this.OnPropertyValueChange(_.BillStatus,_BillStatus,value);
				this._BillStatus = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string FinancyYear
		{
			get{ return _FinancyYear; }
			set
			{
				this.OnPropertyValueChange(_.FinancyYear,_FinancyYear,value);
				this._FinancyYear = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string FinancyMonth
		{
			get{ return _FinancyMonth; }
			set
			{
				this.OnPropertyValueChange(_.FinancyMonth,_FinancyMonth,value);
				this._FinancyMonth = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string DeptCode1
		{
			get{ return _DeptCode1; }
			set
			{
				this.OnPropertyValueChange(_.DeptCode1,_DeptCode1,value);
				this._DeptCode1 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string DeptName1
		{
			get{ return _DeptName1; }
			set
			{
				this.OnPropertyValueChange(_.DeptName1,_DeptName1,value);
				this._DeptName1 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string DeptCode2
		{
			get{ return _DeptCode2; }
			set
			{
				this.OnPropertyValueChange(_.DeptCode2,_DeptCode2,value);
				this._DeptCode2 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string DeptName2
		{
			get{ return _DeptName2; }
			set
			{
				this.OnPropertyValueChange(_.DeptName2,_DeptName2,value);
				this._DeptName2 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CustomerCode
		{
			get{ return _CustomerCode; }
			set
			{
				this.OnPropertyValueChange(_.CustomerCode,_CustomerCode,value);
				this._CustomerCode = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CustomerName
		{
			get{ return _CustomerName; }
			set
			{
				this.OnPropertyValueChange(_.CustomerName,_CustomerName,value);
				this._CustomerName = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string OrderNo
		{
			get{ return _OrderNo; }
			set
			{
				this.OnPropertyValueChange(_.OrderNo,_OrderNo,value);
				this._OrderNo = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? SeqNo
		{
			get{ return _SeqNo; }
			set
			{
				this.OnPropertyValueChange(_.SeqNo,_SeqNo,value);
				this._SeqNo = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? MergerNo
		{
			get{ return _MergerNo; }
			set
			{
				this.OnPropertyValueChange(_.MergerNo,_MergerNo,value);
				this._MergerNo = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public bool? IsMerger
		{
			get{ return _IsMerger; }
			set
			{
				this.OnPropertyValueChange(_.IsMerger,_IsMerger,value);
				this._IsMerger = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? CurrencyID
		{
			get{ return _CurrencyID; }
			set
			{
				this.OnPropertyValueChange(_.CurrencyID,_CurrencyID,value);
				this._CurrencyID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Currency
		{
			get{ return _Currency; }
			set
			{
				this.OnPropertyValueChange(_.Currency,_Currency,value);
				this._Currency = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Exchange
		{
			get{ return _Exchange; }
			set
			{
				this.OnPropertyValueChange(_.Exchange,_Exchange,value);
				this._Exchange = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? RateTax
		{
			get{ return _RateTax; }
			set
			{
				this.OnPropertyValueChange(_.RateTax,_RateTax,value);
				this._RateTax = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Amount
		{
			get{ return _Amount; }
			set
			{
				this.OnPropertyValueChange(_.Amount,_Amount,value);
				this._Amount = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string AmountGet
		{
			get{ return _AmountGet; }
			set
			{
				this.OnPropertyValueChange(_.AmountGet,_AmountGet,value);
				this._AmountGet = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string AmountRemain
		{
			get{ return _AmountRemain; }
			set
			{
				this.OnPropertyValueChange(_.AmountRemain,_AmountRemain,value);
				this._AmountRemain = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string IncomeCNY
		{
			get{ return _IncomeCNY; }
			set
			{
				this.OnPropertyValueChange(_.IncomeCNY,_IncomeCNY,value);
				this._IncomeCNY = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CostCNY
		{
			get{ return _CostCNY; }
			set
			{
				this.OnPropertyValueChange(_.CostCNY,_CostCNY,value);
				this._CostCNY = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ProfitCNY
		{
			get{ return _ProfitCNY; }
			set
			{
				this.OnPropertyValueChange(_.ProfitCNY,_ProfitCNY,value);
				this._ProfitCNY = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public bool? IsReturn
		{
			get{ return _IsReturn; }
			set
			{
				this.OnPropertyValueChange(_.IsReturn,_IsReturn,value);
				this._IsReturn = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserReturnID
		{
			get{ return _UserReturnID; }
			set
			{
				this.OnPropertyValueChange(_.UserReturnID,_UserReturnID,value);
				this._UserReturnID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ReturnDate
		{
			get{ return _ReturnDate; }
			set
			{
				this.OnPropertyValueChange(_.ReturnDate,_ReturnDate,value);
				this._ReturnDate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ReturnNote
		{
			get{ return _ReturnNote; }
			set
			{
				this.OnPropertyValueChange(_.ReturnNote,_ReturnNote,value);
				this._ReturnNote = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public bool? IsCollate
		{
			get{ return _IsCollate; }
			set
			{
				this.OnPropertyValueChange(_.IsCollate,_IsCollate,value);
				this._IsCollate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserCollateID
		{
			get{ return _UserCollateID; }
			set
			{
				this.OnPropertyValueChange(_.UserCollateID,_UserCollateID,value);
				this._UserCollateID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CollateDate
		{
			get{ return _CollateDate; }
			set
			{
				this.OnPropertyValueChange(_.CollateDate,_CollateDate,value);
				this._CollateDate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public bool? IsCommit
		{
			get{ return _IsCommit; }
			set
			{
				this.OnPropertyValueChange(_.IsCommit,_IsCommit,value);
				this._IsCommit = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserCommitID
		{
			get{ return _UserCommitID; }
			set
			{
				this.OnPropertyValueChange(_.UserCommitID,_UserCommitID,value);
				this._UserCommitID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CommitDate
		{
			get{ return _CommitDate; }
			set
			{
				this.OnPropertyValueChange(_.CommitDate,_CommitDate,value);
				this._CommitDate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public bool? IsVerify
		{
			get{ return _IsVerify; }
			set
			{
				this.OnPropertyValueChange(_.IsVerify,_IsVerify,value);
				this._IsVerify = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserVerifyID
		{
			get{ return _UserVerifyID; }
			set
			{
				this.OnPropertyValueChange(_.UserVerifyID,_UserVerifyID,value);
				this._UserVerifyID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string VerifyDate
		{
			get{ return _VerifyDate; }
			set
			{
				this.OnPropertyValueChange(_.VerifyDate,_VerifyDate,value);
				this._VerifyDate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public bool? IsInvoice
		{
			get{ return _IsInvoice; }
			set
			{
				this.OnPropertyValueChange(_.IsInvoice,_IsInvoice,value);
				this._IsInvoice = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserInvoiceID
		{
			get{ return _UserInvoiceID; }
			set
			{
				this.OnPropertyValueChange(_.UserInvoiceID,_UserInvoiceID,value);
				this._UserInvoiceID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string InvoiceDate
		{
			get{ return _InvoiceDate; }
			set
			{
				this.OnPropertyValueChange(_.InvoiceDate,_InvoiceDate,value);
				this._InvoiceDate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string InvoiceNo
		{
			get{ return _InvoiceNo; }
			set
			{
				this.OnPropertyValueChange(_.InvoiceNo,_InvoiceNo,value);
				this._InvoiceNo = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string InvoiceTitle
		{
			get{ return _InvoiceTitle; }
			set
			{
				this.OnPropertyValueChange(_.InvoiceTitle,_InvoiceTitle,value);
				this._InvoiceTitle = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public bool? IsGet
		{
			get{ return _IsGet; }
			set
			{
				this.OnPropertyValueChange(_.IsGet,_IsGet,value);
				this._IsGet = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserGetID
		{
			get{ return _UserGetID; }
			set
			{
				this.OnPropertyValueChange(_.UserGetID,_UserGetID,value);
				this._UserGetID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string GetDate
		{
			get{ return _GetDate; }
			set
			{
				this.OnPropertyValueChange(_.GetDate,_GetDate,value);
				this._GetDate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Note
		{
			get{ return _Note; }
			set
			{
				this.OnPropertyValueChange(_.Note,_Note,value);
				this._Note = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public bool? IsSelect
		{
			get{ return _IsSelect; }
			set
			{
				this.OnPropertyValueChange(_.IsSelect,_IsSelect,value);
				this._IsSelect = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserCreateID
		{
			get{ return _UserCreateID; }
			set
			{
				this.OnPropertyValueChange(_.UserCreateID,_UserCreateID,value);
				this._UserCreateID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CreateDate
		{
			get{ return _CreateDate; }
			set
			{
				this.OnPropertyValueChange(_.CreateDate,_CreateDate,value);
				this._CreateDate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserModifyID
		{
			get{ return _UserModifyID; }
			set
			{
				this.OnPropertyValueChange(_.UserModifyID,_UserModifyID,value);
				this._UserModifyID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ModifyDate
		{
			get{ return _ModifyDate; }
			set
			{
				this.OnPropertyValueChange(_.ModifyDate,_ModifyDate,value);
				this._ModifyDate = value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取实体中的标识列
		/// </summary>
		public override Field GetIdentityField()
		{
			return _.UID;
		}
		/// <summary>
		/// 获取实体中的主键列
		/// </summary>
		public override Field[] GetPrimaryKeyFields()
		{
			return new Field[] {
				_.UID			};
		}
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.UID,
				_.BillNo,
				_.BillStatus,
				_.FinancyYear,
				_.FinancyMonth,
				_.DeptCode1,
				_.DeptName1,
				_.DeptCode2,
				_.DeptName2,
				_.CustomerCode,
				_.CustomerName,
				_.OrderNo,
				_.SeqNo,
				_.MergerNo,
				_.IsMerger,
				_.CurrencyID,
				_.Currency,
				_.Exchange,
				_.RateTax,
				_.Amount,
				_.AmountGet,
				_.AmountRemain,
				_.IncomeCNY,
				_.CostCNY,
				_.ProfitCNY,
				_.IsReturn,
				_.UserReturnID,
				_.ReturnDate,
				_.ReturnNote,
				_.IsCollate,
				_.UserCollateID,
				_.CollateDate,
				_.IsCommit,
				_.UserCommitID,
				_.CommitDate,
				_.IsVerify,
				_.UserVerifyID,
				_.VerifyDate,
				_.IsInvoice,
				_.UserInvoiceID,
				_.InvoiceDate,
				_.InvoiceNo,
				_.InvoiceTitle,
				_.IsGet,
				_.UserGetID,
				_.GetDate,
				_.Note,
				_.IsSelect,
				_.UserCreateID,
				_.CreateDate,
				_.UserModifyID,
				_.ModifyDate
			};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				_UID,
				_BillNo,
				_BillStatus,
				_FinancyYear,
				_FinancyMonth,
				_DeptCode1,
				_DeptName1,
				_DeptCode2,
				_DeptName2,
				_CustomerCode,
				_CustomerName,
				_OrderNo,
				_SeqNo,
				_MergerNo,
				_IsMerger,
				_CurrencyID,
				_Currency,
				_Exchange,
				_RateTax,
				_Amount,
				_AmountGet,
				_AmountRemain,
				_IncomeCNY,
				_CostCNY,
				_ProfitCNY,
				_IsReturn,
				_UserReturnID,
				_ReturnDate,
				_ReturnNote,
				_IsCollate,
				_UserCollateID,
				_CollateDate,
				_IsCommit,
				_UserCommitID,
				_CommitDate,
				_IsVerify,
				_UserVerifyID,
				_VerifyDate,
				_IsInvoice,
				_UserInvoiceID,
				_InvoiceDate,
				_InvoiceNo,
				_InvoiceTitle,
				_IsGet,
				_UserGetID,
				_GetDate,
				_Note,
				_IsSelect,
				_UserCreateID,
				_CreateDate,
				_UserModifyID,
				_ModifyDate
			};
		} 
		/// <summary>
		/// 设置字段值
		/// </summary>
		public override void SetValue(string fieldName, object value)
        {
            switch (fieldName)
            { 
				case "UID":
                    this._UID = DataHelper.ConvertValue<int>(value);
                    break; 
				case "BillNo":
                    this._BillNo = DataHelper.ConvertValue<string>(value);
                    break; 
				case "BillStatus":
                    this._BillStatus = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "FinancyYear":
                    this._FinancyYear = DataHelper.ConvertValue<string>(value);
                    break; 
				case "FinancyMonth":
                    this._FinancyMonth = DataHelper.ConvertValue<string>(value);
                    break; 
				case "DeptCode1":
                    this._DeptCode1 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "DeptName1":
                    this._DeptName1 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "DeptCode2":
                    this._DeptCode2 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "DeptName2":
                    this._DeptName2 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "CustomerCode":
                    this._CustomerCode = DataHelper.ConvertValue<string>(value);
                    break; 
				case "CustomerName":
                    this._CustomerName = DataHelper.ConvertValue<string>(value);
                    break; 
				case "OrderNo":
                    this._OrderNo = DataHelper.ConvertValue<string>(value);
                    break; 
				case "SeqNo":
                    this._SeqNo = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "MergerNo":
                    this._MergerNo = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "IsMerger":
                    this._IsMerger = DataHelper.ConvertValue<bool?>(value);
                    break; 
				case "CurrencyID":
                    this._CurrencyID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "Currency":
                    this._Currency = DataHelper.ConvertValue<string>(value);
                    break; 
				case "Exchange":
                    this._Exchange = DataHelper.ConvertValue<string>(value);
                    break; 
				case "RateTax":
                    this._RateTax = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "Amount":
                    this._Amount = DataHelper.ConvertValue<string>(value);
                    break; 
				case "AmountGet":
                    this._AmountGet = DataHelper.ConvertValue<string>(value);
                    break; 
				case "AmountRemain":
                    this._AmountRemain = DataHelper.ConvertValue<string>(value);
                    break; 
				case "IncomeCNY":
                    this._IncomeCNY = DataHelper.ConvertValue<string>(value);
                    break; 
				case "CostCNY":
                    this._CostCNY = DataHelper.ConvertValue<string>(value);
                    break; 
				case "ProfitCNY":
                    this._ProfitCNY = DataHelper.ConvertValue<string>(value);
                    break; 
				case "IsReturn":
                    this._IsReturn = DataHelper.ConvertValue<bool?>(value);
                    break; 
				case "UserReturnID":
                    this._UserReturnID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "ReturnDate":
                    this._ReturnDate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "ReturnNote":
                    this._ReturnNote = DataHelper.ConvertValue<string>(value);
                    break; 
				case "IsCollate":
                    this._IsCollate = DataHelper.ConvertValue<bool?>(value);
                    break; 
				case "UserCollateID":
                    this._UserCollateID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "CollateDate":
                    this._CollateDate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "IsCommit":
                    this._IsCommit = DataHelper.ConvertValue<bool?>(value);
                    break; 
				case "UserCommitID":
                    this._UserCommitID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "CommitDate":
                    this._CommitDate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "IsVerify":
                    this._IsVerify = DataHelper.ConvertValue<bool?>(value);
                    break; 
				case "UserVerifyID":
                    this._UserVerifyID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "VerifyDate":
                    this._VerifyDate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "IsInvoice":
                    this._IsInvoice = DataHelper.ConvertValue<bool?>(value);
                    break; 
				case "UserInvoiceID":
                    this._UserInvoiceID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "InvoiceDate":
                    this._InvoiceDate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "InvoiceNo":
                    this._InvoiceNo = DataHelper.ConvertValue<string>(value);
                    break; 
				case "InvoiceTitle":
                    this._InvoiceTitle = DataHelper.ConvertValue<string>(value);
                    break; 
				case "IsGet":
                    this._IsGet = DataHelper.ConvertValue<bool?>(value);
                    break; 
				case "UserGetID":
                    this._UserGetID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "GetDate":
                    this._GetDate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "Note":
                    this._Note = DataHelper.ConvertValue<string>(value);
                    break; 
				case "IsSelect":
                    this._IsSelect = DataHelper.ConvertValue<bool?>(value);
                    break; 
				case "UserCreateID":
                    this._UserCreateID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "CreateDate":
                    this._CreateDate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "UserModifyID":
                    this._UserModifyID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "ModifyDate":
                    this._ModifyDate = DataHelper.ConvertValue<string>(value);
                    break; 
            }
        }
		/// <summary>
		/// 获取字段值
		/// </summary>
        public override object GetValue(string fieldName)
        {
            switch (fieldName)
            { 
				case "UID":
                    return this._UID; 
				case "BillNo":
                    return this._BillNo; 
				case "BillStatus":
                    return this._BillStatus; 
				case "FinancyYear":
                    return this._FinancyYear; 
				case "FinancyMonth":
                    return this._FinancyMonth; 
				case "DeptCode1":
                    return this._DeptCode1; 
				case "DeptName1":
                    return this._DeptName1; 
				case "DeptCode2":
                    return this._DeptCode2; 
				case "DeptName2":
                    return this._DeptName2; 
				case "CustomerCode":
                    return this._CustomerCode; 
				case "CustomerName":
                    return this._CustomerName; 
				case "OrderNo":
                    return this._OrderNo; 
				case "SeqNo":
                    return this._SeqNo; 
				case "MergerNo":
                    return this._MergerNo; 
				case "IsMerger":
                    return this._IsMerger; 
				case "CurrencyID":
                    return this._CurrencyID; 
				case "Currency":
                    return this._Currency; 
				case "Exchange":
                    return this._Exchange; 
				case "RateTax":
                    return this._RateTax; 
				case "Amount":
                    return this._Amount; 
				case "AmountGet":
                    return this._AmountGet; 
				case "AmountRemain":
                    return this._AmountRemain; 
				case "IncomeCNY":
                    return this._IncomeCNY; 
				case "CostCNY":
                    return this._CostCNY; 
				case "ProfitCNY":
                    return this._ProfitCNY; 
				case "IsReturn":
                    return this._IsReturn; 
				case "UserReturnID":
                    return this._UserReturnID; 
				case "ReturnDate":
                    return this._ReturnDate; 
				case "ReturnNote":
                    return this._ReturnNote; 
				case "IsCollate":
                    return this._IsCollate; 
				case "UserCollateID":
                    return this._UserCollateID; 
				case "CollateDate":
                    return this._CollateDate; 
				case "IsCommit":
                    return this._IsCommit; 
				case "UserCommitID":
                    return this._UserCommitID; 
				case "CommitDate":
                    return this._CommitDate; 
				case "IsVerify":
                    return this._IsVerify; 
				case "UserVerifyID":
                    return this._UserVerifyID; 
				case "VerifyDate":
                    return this._VerifyDate; 
				case "IsInvoice":
                    return this._IsInvoice; 
				case "UserInvoiceID":
                    return this._UserInvoiceID; 
				case "InvoiceDate":
                    return this._InvoiceDate; 
				case "InvoiceNo":
                    return this._InvoiceNo; 
				case "InvoiceTitle":
                    return this._InvoiceTitle; 
				case "IsGet":
                    return this._IsGet; 
				case "UserGetID":
                    return this._UserGetID; 
				case "GetDate":
                    return this._GetDate; 
				case "Note":
                    return this._Note; 
				case "IsSelect":
                    return this._IsSelect; 
				case "UserCreateID":
                    return this._UserCreateID; 
				case "CreateDate":
                    return this._CreateDate; 
				case "UserModifyID":
                    return this._UserModifyID; 
				case "ModifyDate":
                    return this._ModifyDate; 
				default :
                    return null;
            } 
        }



		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","cBill");
 
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UID = new Field("UID","cBill","UID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field BillNo = new Field("BillNo","cBill","BillNo");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field BillStatus = new Field("BillStatus","cBill","BillStatus");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field FinancyYear = new Field("FinancyYear","cBill","FinancyYear");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field FinancyMonth = new Field("FinancyMonth","cBill","FinancyMonth");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field DeptCode1 = new Field("DeptCode1","cBill","DeptCode1");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field DeptName1 = new Field("DeptName1","cBill","DeptName1");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field DeptCode2 = new Field("DeptCode2","cBill","DeptCode2");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field DeptName2 = new Field("DeptName2","cBill","DeptName2");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CustomerCode = new Field("CustomerCode","cBill","CustomerCode");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CustomerName = new Field("CustomerName","cBill","CustomerName");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field OrderNo = new Field("OrderNo","cBill","OrderNo");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field SeqNo = new Field("SeqNo","cBill","SeqNo");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field MergerNo = new Field("MergerNo","cBill","MergerNo");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsMerger = new Field("IsMerger","cBill","IsMerger");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CurrencyID = new Field("CurrencyID","cBill","CurrencyID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Currency = new Field("Currency","cBill","Currency");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Exchange = new Field("Exchange","cBill","Exchange");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field RateTax = new Field("RateTax","cBill","RateTax");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Amount = new Field("Amount","cBill","Amount");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field AmountGet = new Field("AmountGet","cBill","AmountGet");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field AmountRemain = new Field("AmountRemain","cBill","AmountRemain");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IncomeCNY = new Field("IncomeCNY","cBill","IncomeCNY");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CostCNY = new Field("CostCNY","cBill","CostCNY");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ProfitCNY = new Field("ProfitCNY","cBill","ProfitCNY");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsReturn = new Field("IsReturn","cBill","IsReturn");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserReturnID = new Field("UserReturnID","cBill","UserReturnID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ReturnDate = new Field("ReturnDate","cBill","ReturnDate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ReturnNote = new Field("ReturnNote","cBill","ReturnNote");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsCollate = new Field("IsCollate","cBill","IsCollate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserCollateID = new Field("UserCollateID","cBill","UserCollateID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CollateDate = new Field("CollateDate","cBill","CollateDate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsCommit = new Field("IsCommit","cBill","IsCommit");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserCommitID = new Field("UserCommitID","cBill","UserCommitID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CommitDate = new Field("CommitDate","cBill","CommitDate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsVerify = new Field("IsVerify","cBill","IsVerify");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserVerifyID = new Field("UserVerifyID","cBill","UserVerifyID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field VerifyDate = new Field("VerifyDate","cBill","VerifyDate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsInvoice = new Field("IsInvoice","cBill","IsInvoice");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserInvoiceID = new Field("UserInvoiceID","cBill","UserInvoiceID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field InvoiceDate = new Field("InvoiceDate","cBill","InvoiceDate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field InvoiceNo = new Field("InvoiceNo","cBill","InvoiceNo");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field InvoiceTitle = new Field("InvoiceTitle","cBill","InvoiceTitle");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsGet = new Field("IsGet","cBill","IsGet");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserGetID = new Field("UserGetID","cBill","UserGetID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field GetDate = new Field("GetDate","cBill","GetDate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Note = new Field("Note","cBill","Note");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsSelect = new Field("IsSelect","cBill","IsSelect");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserCreateID = new Field("UserCreateID","cBill","UserCreateID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CreateDate = new Field("CreateDate","cBill","CreateDate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserModifyID = new Field("UserModifyID","cBill","UserModifyID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ModifyDate = new Field("ModifyDate","cBill","ModifyDate");
		}
		#endregion

 
	}
}

